<template>
  <div class="userleftPage">
    <div class="userLeftBox">
      <div class="title">
        <h1>个人中心</h1>
      </div>
      <div class="user_navBox">
        <el-menu :default-active="activeIndex" class="el-menu-unav" 
        mode="vertical" @select="userSelect" 
        background-color="white"
        active-text-color="black" text-color="black">
          <el-menu-item index="1">首页</el-menu-item>
          <el-menu-item index="2">个人订单</el-menu-item>
          <el-menu-item index="3">地址簿</el-menu-item>
          <!-- <el-menu-item index="4" disabled>消息中心</el-menu-item>
          <el-menu-item index="5"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item> -->
        </el-menu>
      </div>

    </div>
  </div>
</template>

<script>
export default {
  name: 'userLeft',
  data () {
    return {
      msg: '',
      activeIndex: '1',
    }
  },
  methods: {
    userSelect(key, keyPath) {
        console.log(key, keyPath);
        if(key=='1'){
            this.$router.push('/userCenter/userAccount');
        }else if(key=='2'){
            this.$router.push('/userCenter/userOrder/orderAll');
        }else if(key=='3'){
            this.$router.push('/userCenter/userAddress');
        }else{
            this.$router.push('/userCenter/userAccount');
        }
      },
  },
  mounted () {

  }
}
</script>

<style scoped>
li{
  list-style-type: none;
}
.userleftPage{
  font-family: "Helvetica Neue", Helvetica, Arial, PingFang, "Microsoft YaHei", 雅黑体, SimHei, sans-serif;
  color: rgb(3, 3, 3);
 
}
.userLeftBox{
   margin:0;
   margin-left: 10px;
   margin-right: 10px;
}
.userLeftBox .title{
  position: relative;
  left: 10px;
}
.userLeftBox .title h1{
  font-weight: 500;
}
.user_navBox{
    /* width: 30%; */
    /* width: 200px; */
    /* display: inline; */
    /* border: 1px solid rgb(13, 92, 204); */
     border-right:.5px solid rgb(3, 2, 5);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.el-menu-unav{
  border-right: none;
  position: relative;
  left: -15px;
   
}
.el-menu-unav >>> li{
  font-size: 16px;
  font-weight: 500;
  width: 150px;
  color: rgb(151, 149, 149) !important;
}
.el-menu-unav >>> li:focus{
  background: transparent !important;
}
.el-menu-unav >>> li:hover{
  background: transparent !important;
  border-bottom-color: 1px solid #111 !important;
   text-underline-offset: 7px;
    text-decoration: underline .5px rgb(17, 17, 17);
}
.el-menu-unav >>> .el-menu-item{
  margin-bottom: 10px;
  height: 40px !important;
  line-height: 30px !important;
}
.el-menu-unav >>> .el-menu-item.is-active{
  transition: .3s;
    font-size: 20px;
    font-weight: 500;
    text-underline-offset: 7px;
   text-underline-position: auto;
    color: rgb(23, 23, 23) !important;
    text-decoration: underline 1.5px rgb(17, 17, 17);
}

.userl_li{
  margin-bottom: 13px;
}
/* text-transform: none; 文本大小写 */
.ul_link{
  color: rgb(17, 17, 17);
  font-size: 20px;
  font-weight: 500;
  line-height: 33px;
  
  font-style: normal;
  text-transform: none;
  box-sizing: border-box;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  cursor: pointer;
  padding: 0px;
  color: rgb(173, 171, 171);
  background: transparent;
  border: 0px;
  box-shadow: rgb(17 17 17) 0px 0px 0px 0px inset;
  text-align: start;
  position: relative;
  overflow: visible;
  /* -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none; */
}
.ul_link:focus{
   color: rgb(17, 17, 17);
     font-size: 24px;
  font-weight: 500;
}
.tdline:focus{
  /* transition: 2s; */
  text-underline-offset: 7px;
  text-decoration: underline 1.5px rgb(17, 17, 17);
}


</style>
